<?php
session_start();
require_once '../script/Application.php';
require_once '../script/User.php';
require_once '../script/XMLFile.php';

	$retour = array();
	if( isset($_POST['file']) )
	{
		$file = $_POST['file'];
		Application::deleteFile('..\files\\', $file);
		$retour["ok"] = $file;	
	}
	else
	{
		$retour['erreur'] = "fichier inconu";
	}

echo json_encode($retour);
?>